package com.kb.erp.controller;

import com.kb.erp.service.ContractFillingService;
import com.kb.erp.service.impl.ContractFilingServiceImpl;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/contractfilling")
@RestController
public class ContractFilingJobController {

    @Autowired
    private ContractFillingService FillingService;

    @XxlJob("contractfilling")
    @GetMapping("/contractfilling")
    public void contractfillling() {
        FillingService.getcontractfile();
    }

}
